package com.qf.service.impl;

import com.qf.dao.UserDao;
import com.qf.entity.User;
import com.qf.service.UserService;

import java.sql.SQLException;

public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User queryUserById(Integer id) {
        //service层的其他逻辑
        System.out.println("对id做校验......id:"+id);

        return userDao.getUserById(id);
    }

    @Override
    public int updateUser(Integer id, String name) {

        return 0;
    }
}
